﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category7
{
  public class MT769 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagChoiceDefinition U000F;
    private static SwiftTagDefinition U0010;
    private static SwiftTagSubItemDefinition U0011;
    private static SwiftTagSubItemDefinition U0012;
    private static SwiftTagDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;
    private static SwiftTagSubItemDefinition U0019;
    private static SwiftTagDefinition U001A;
    private static SwiftTagSubItemDefinition U001B;
    private static SwiftTagSubItemDefinition U001C;
    private static SwiftTagDefinition U001D;
    private static SwiftTagChoiceDefinition U001E;
    private static SwiftTagDefinition U001F;
    private static SwiftTagSubItemDefinition U007F;
    private static SwiftTagSubItemDefinition U0080;
    private static SwiftTagDefinition U0081;
    private static SwiftTagSubItemDefinition U0082;
    private static SwiftTagSubItemDefinition U0083;
    private static SwiftTagDefinition U0084;
    private static SwiftTagSubItemDefinition U0086;
    private static SwiftTagSubItemDefinition U0087;
    private static SwiftTagDefinition U0088;
    private static SwiftTagDefinition U0089;

    [Description("Transaction Reference Number")]
    public Tag20 TransactionReferenceNumber_20
    {
      get
      {
        return new Tag20((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0002);
      }
    }

    [Description("Transaction Reference Number")]
    public Tag20 Tag20_TransactionReferenceNumber
    {
      get
      {
        return this.TransactionReferenceNumber_20;
      }
    }

    [Description("Related Reference")]
    public Tag21 RelatedReference_21
    {
      get
      {
        return new Tag21((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0004);
      }
    }

    [Description("Related Reference")]
    public Tag21 Tag21_RelatedReference
    {
      get
      {
        return this.RelatedReference_21;
      }
    }

    [Description("Account Identification")]
    public Tag25 AccountIdentification_25
    {
      get
      {
        return new Tag25((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0006);
      }
    }

    [Description("Account Identification")]
    public Tag25 Tag25_AccountIdentification
    {
      get
      {
        return this.AccountIdentification_25;
      }
    }

    [Description("Date of Reduction or Release")]
    public Tag30 DateOfReductionOrRelease_30
    {
      get
      {
        return new Tag30((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0008);
      }
    }

    [Description("Date of Reduction or Release")]
    public Tag30 Tag30_DateOfReductionOrRelease
    {
      get
      {
        return this.DateOfReductionOrRelease_30;
      }
    }

    [Description("Amount of Charges")]
    public Tag32B AmountOfCharges_32B
    {
      get
      {
        return new Tag32B((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0010);
      }
    }

    [Description("Amount of Charges")]
    public Tag32B Tag32B_AmountOfCharges
    {
      get
      {
        return this.AmountOfCharges_32B;
      }
    }

    [Description("Amount of Charges")]
    public Tag32D AmountOfCharges_32D
    {
      get
      {
        return new Tag32D((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0013);
      }
    }

    [Description("Amount of Charges")]
    public Tag32D Tag32D_AmountOfCharges
    {
      get
      {
        return this.AmountOfCharges_32D;
      }
    }

    [Description("Amount Reduced or Released")]
    public Tag33B AmountReducedOrReleased_33B
    {
      get
      {
        return new Tag33B((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0017);
      }
    }

    [Description("Amount Reduced or Released")]
    public Tag33B Tag33B_AmountReducedOrReleased
    {
      get
      {
        return this.AmountReducedOrReleased_33B;
      }
    }

    [Description("Amount Outstanding")]
    public Tag34B AmountOutstanding_34B
    {
      get
      {
        return new Tag34B((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U001A);
      }
    }

    [Description("Amount Outstanding")]
    public Tag34B Tag34B_AmountOutstanding
    {
      get
      {
        return this.AmountOutstanding_34B;
      }
    }

    [Description("Amount Specification")]
    public Tag39C AmountSpecification_39C
    {
      get
      {
        return new Tag39C((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U001D);
      }
    }

    [Description("Amount Specification")]
    public Tag39C Tag39C_AmountSpecification
    {
      get
      {
        return this.AmountSpecification_39C;
      }
    }

    [Description("Account With Bank")]
    public Tag57A AccountWithBank_57A
    {
      get
      {
        return new Tag57A((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U001F);
      }
    }

    [Description("Account With Bank")]
    public Tag57A Tag57A_AccountWithBank
    {
      get
      {
        return this.AccountWithBank_57A;
      }
    }

    [Description("Account With Bank")]
    public Tag57B AccountWithBank_57B
    {
      get
      {
        return new Tag57B((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0081);
      }
    }

    [Description("Account With Bank")]
    public Tag57B Tag57B_AccountWithBank
    {
      get
      {
        return this.AccountWithBank_57B;
      }
    }

    [Description("Account With Bank")]
    public Tag57D AccountWithBank_57D
    {
      get
      {
        return new Tag57D((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0084);
      }
    }

    [Description("Account With Bank")]
    public Tag57D Tag57D_AccountWithBank
    {
      get
      {
        return this.AccountWithBank_57D;
      }
    }

    [Description("Details of Charges")]
    public Tag71B DetailsOfCharges_71B
    {
      get
      {
        return new Tag71B((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0088);
      }
    }

    [Description("Details of Charges")]
    public Tag71B Tag71B_DetailsOfCharges
    {
      get
      {
        return this.DetailsOfCharges_71B;
      }
    }

    [Description("Sender to Receiver Information")]
    public Tag72 SenderToReceiverInformation_72
    {
      get
      {
        return new Tag72((SwiftElement) this, 0, (SwiftDefinitionElement) MT769.U0089);
      }
    }

    [Description("Sender to Receiver Information")]
    public Tag72 Tag72_SenderToReceiverInformation
    {
      get
      {
        return this.SenderToReceiverInformation_72;
      }
    }

    public MT769()
      : base(true)
    {
    }

    public MT769(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MT769.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MT769.MessageDefinition = new SwiftMessageDefinition("MT769", "Advice of Reduction or Release");
      MT769.U0002 = new SwiftTagDefinition("TransactionReferenceNumber_20", "Transaction Reference Number");
      MT769.U0002.TagName = ":20:";
      MT769.U0003 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT769.U0002.Elements.Add((SwiftDefinitionElement) MT769.U0003);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0002);
      MT769.U0004 = new SwiftTagDefinition("RelatedReference_21", "Related Reference");
      MT769.U0004.TagName = ":21:";
      MT769.U0005 = new SwiftTagSubItemDefinition("Reference", "Reference");
      MT769.U0004.Elements.Add((SwiftDefinitionElement) MT769.U0005);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0004);
      MT769.U0006 = new SwiftTagDefinition("AccountIdentification_25", "Account Identification");
      MT769.U0006.TagName = ":25:";
      MT769.U0006.Mandatory = false;
      MT769.U0007 = new SwiftTagSubItemDefinition("Account", "Account");
      MT769.U0006.Elements.Add((SwiftDefinitionElement) MT769.U0007);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0006);
      MT769.U0008 = new SwiftTagDefinition("DateOfReductionOrRelease_30", "Date of Reduction or Release");
      MT769.U0008.TagName = ":30:";
      MT769.U0008.Mandatory = false;
      MT769.U000E = new SwiftTagSubItemDefinition("Date", "Date");
      MT769.U0008.Elements.Add((SwiftDefinitionElement) MT769.U000E);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0008);
      MT769.U000F = new SwiftTagChoiceDefinition("Choice", "");
      MT769.U000F.Mandatory = false;
      MT769.U000F.Multiple = true;
      MT769.U0010 = new SwiftTagDefinition("AmountOfCharges_32B", "Amount of Charges");
      MT769.U0010.TagName = ":32B:";
      MT769.U0011 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT769.U0010.Elements.Add((SwiftDefinitionElement) MT769.U0011);
      MT769.U0012 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT769.U0010.Elements.Add((SwiftDefinitionElement) MT769.U0012);
      MT769.U000F.Elements.Add((SwiftDefinitionElement) MT769.U0010);
      MT769.U0013 = new SwiftTagDefinition("AmountOfCharges_32D", "Amount of Charges");
      MT769.U0013.TagName = ":32D:";
      MT769.U0014 = new SwiftTagSubItemDefinition("Date", "Date");
      MT769.U0013.Elements.Add((SwiftDefinitionElement) MT769.U0014);
      MT769.U0015 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT769.U0013.Elements.Add((SwiftDefinitionElement) MT769.U0015);
      MT769.U0016 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT769.U0013.Elements.Add((SwiftDefinitionElement) MT769.U0016);
      MT769.U000F.Elements.Add((SwiftDefinitionElement) MT769.U0013);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U000F);
      MT769.U0017 = new SwiftTagDefinition("AmountReducedOrReleased_33B", "Amount Reduced or Released");
      MT769.U0017.TagName = ":33B:";
      MT769.U0017.Mandatory = false;
      MT769.U0018 = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT769.U0017.Elements.Add((SwiftDefinitionElement) MT769.U0018);
      MT769.U0019 = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT769.U0017.Elements.Add((SwiftDefinitionElement) MT769.U0019);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0017);
      MT769.U001A = new SwiftTagDefinition("AmountOutstanding_34B", "Amount Outstanding");
      MT769.U001A.TagName = ":34B:";
      MT769.U001A.Mandatory = false;
      MT769.U001B = new SwiftTagSubItemDefinition("Currency", "Currency");
      MT769.U001A.Elements.Add((SwiftDefinitionElement) MT769.U001B);
      MT769.U001C = new SwiftTagSubItemDefinition("Amount", "Amount");
      MT769.U001A.Elements.Add((SwiftDefinitionElement) MT769.U001C);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U001A);
      MT769.U001D = new SwiftTagDefinition("AmountSpecification_39C", "Amount Specification");
      MT769.U001D.TagName = ":39C:";
      MT769.U001D.Mandatory = false;
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U001D);
      MT769.U001E = new SwiftTagChoiceDefinition("Choice", "");
      MT769.U001E.Mandatory = false;
      MT769.U001E.Multiple = true;
      MT769.U001F = new SwiftTagDefinition("AccountWithBank_57A", "Account With Bank");
      MT769.U001F.TagName = ":57A:";
      MT769.U001F.Mandatory = false;
      MT769.U007F = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT769.U007F.Mandatory = false;
      MT769.U001F.Elements.Add((SwiftDefinitionElement) MT769.U007F);
      MT769.U0080 = new SwiftTagSubItemDefinition("BankIdentifierCode", "Bank Identifier Code");
      MT769.U001F.Elements.Add((SwiftDefinitionElement) MT769.U0080);
      MT769.U001E.Elements.Add((SwiftDefinitionElement) MT769.U001F);
      MT769.U0081 = new SwiftTagDefinition("AccountWithBank_57B", "Account With Bank");
      MT769.U0081.TagName = ":57B:";
      MT769.U0082 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT769.U0082.Mandatory = false;
      MT769.U0081.Elements.Add((SwiftDefinitionElement) MT769.U0082);
      MT769.U0083 = new SwiftTagSubItemDefinition("Location", "Location");
      MT769.U0083.Mandatory = false;
      MT769.U0081.Elements.Add((SwiftDefinitionElement) MT769.U0083);
      MT769.U001E.Elements.Add((SwiftDefinitionElement) MT769.U0081);
      MT769.U0084 = new SwiftTagDefinition("AccountWithBank_57D", "Account With Bank");
      MT769.U0084.TagName = ":57D:";
      MT769.U0084.Mandatory = false;
      MT769.U0086 = new SwiftTagSubItemDefinition("PartyIdentifier", "Party Identifier");
      MT769.U0086.Mandatory = false;
      MT769.U0084.Elements.Add((SwiftDefinitionElement) MT769.U0086);
      MT769.U0087 = new SwiftTagSubItemDefinition("NameAndAddress", "NameAndAddress");
      MT769.U0084.Elements.Add((SwiftDefinitionElement) MT769.U0087);
      MT769.U001E.Elements.Add((SwiftDefinitionElement) MT769.U0084);
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U001E);
      MT769.U0088 = new SwiftTagDefinition("DetailsOfCharges_71B", "Details of Charges");
      MT769.U0088.TagName = ":71B:";
      MT769.U0088.Mandatory = false;
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0088);
      MT769.U0089 = new SwiftTagDefinition("SenderToReceiverInformation_72", "Sender to Receiver Information");
      MT769.U0089.TagName = ":72:";
      MT769.U0089.Mandatory = false;
      MT769.MessageDefinition.Elements.Add((SwiftDefinitionElement) MT769.U0089);
    }
  }
}
